/**
 * @type {Array<import("vue-router").RouteConfig>}
 */
const routes = [
  {
    path: "/",
    alias: "/",
    component() {
      return import("@/views/home/index.vue");
    },
    redirect: "test1",
    meta: {
      title: "首页",
      nologin: false,
      footer: true,
      header: true
    },
    children: [
      {
        path: "test2",
        component() {
          return import("@/views/home/test2.vue");
        },
        meta: {
          footer: true,
          header: true,
          nologin: false
        }
      },
      {
        path: "test1",
        component() {
          return import("@/views/home/test.vue");
        },
        meta: {
          footer: true,
          header: true,
          nologin: false
        }
      }
    ]
  }
];

export default routes;
